package br.com.absolutech.study.chapter4.p171;

public class AssignmentOps {

	public static void main(String[] args) {

		int sizeOfYard = 10;
		int numOfPets = 3;
		seePetStatus(sizeOfYard, numOfPets);

		sizeOfYard = 10;
		numOfPets = 4;
		seePetStatus(sizeOfYard, numOfPets);

		sizeOfYard = 7;
		numOfPets = 4;
		seePetStatus(sizeOfYard, numOfPets);

	}

	private static void seePetStatus(int sizeOfYard, int numOfPets) {

		String status = (numOfPets < 4) ? "Pet count OK"
				: (sizeOfYard > 8) ? "Pet limit on the edge" : "too many pets";
		System.out.println("Pet status is: " + status);

	}

}
